package com.vilicode.mapper;

import com.vilicode.bean.Book;
import com.vilicode.bean.BookType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookTypeMapper {
    public List<BookType> queryBookTypes();
    public List<Book> queryBooksByBtid(@Param("btid") int btid,@Param("pageIndex") int pageIndex,@Param("pageSize") int pageSize);//按btid查询书籍
    public int queryCountOfBooksByTypeID(@Param("btid")int btid);//根据推荐类型查询总数
    public String queryBookTypeNameByBookTypeID(@Param("btid")int btid);
    public void addBookType(@Param("btname")String btname);
    public void updateBookType(@Param("btid")int btid,@Param("btname")String btname);
    public void deleteBookType(@Param("btid")int btid);
    public int identifyBtname(@Param("btname")String btname);
}
